package com.ewhale.feitengguest.ui.user.mine.adapter;

import android.view.View;
import android.widget.TextView;

import com.ewhale.feitengguest.R;
import com.ewhale.feitengguest.dto.HelpCenterDto;
import com.simga.library.adapter.recyclerview.BaseViewHolder;
import com.simga.library.adapter.recyclerview.MutiRecyclerAdapter;

import java.util.List;

import butterknife.BindView;

public class HelpCenterAdapter extends MutiRecyclerAdapter<HelpCenterDto> {



    public HelpCenterAdapter(List<HelpCenterDto> data) {
        super(data,R.layout.item_help_center);
    }

    @Override
    protected BaseViewHolder<HelpCenterDto> getViewHolder() {
        return new ViewHolder(view);
    }

    static class ViewHolder extends BaseViewHolder<HelpCenterDto> {
        @BindView(R.id.tv_title)
        TextView mTvTitle;
        public ViewHolder(View itemView) {
            super(itemView);
        }

        @Override
        public void build(HelpCenterDto object, int position) {
            mTvTitle.setText(object.name);
        }
    }
}
